<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:sec="http://www.springframework.org/security/facelets/tags">

<!--  	
	Pode se usar o rendered do spring security da seguinte forma
	 - rendered="#{sec:ifAnyGranted('ROLE_ADM')}
	se preferir, as taglibs usam a seguinte notação:
	 - <sec:ifNotGranted roles="ROLE_USER"></....>
-->

<ui:composition>
	<h:form>
		<p:accordionPanel>
			
			<!-- Página Inicial -->
			<p:tab title="#{i18n['menu.inicio']}">
				<p:commandLink ajax="false" id="home" action="#{homeBean.showPaginaInicial}" title="#{i18n['menu.home']}">
					<h:panelGrid columns="2" style="border:none">
						<p:graphicImage url="/resources/imagens/home.png" style="border:none" />
						<h:outputText value="#{i18n['menu.home']}" />
					</h:panelGrid>
				</p:commandLink>
			</p:tab>
			
			<!-- Gestão de Usuários -->
			<p:tab title="#{i18n['menu.gestao.usuarios']}" >
				<p:commandLink ajax="false" id="usuario"
					action="/visao/adminVisao/gestaoUsuario/listaUsuario.jsf" title="#{i18n['menu.gestao.usuario']}"
					rendered="true" >
					<h:panelGrid columns="2" style="border:none">
						<p:graphicImage url="/resources/imagens/usuario.png" style="width:16px;height:16px; border:none" />
						<h:outputText value="#{i18n['menu.gestao.usuario']}" />
					</h:panelGrid>
					<p:effect event="pulsate" type="click" for="usuario" />
				</p:commandLink>
			</p:tab>

			<!-- Cadastros Básicos -->
			<p:tab title="#{i18n['menu.cad']}" >
				<h:panelGrid columns="1" style="border:none;">


				</h:panelGrid>
			</p:tab>

			<!-- Movimentação Financeira  -->
			<p:tab title="#{i18n['menu.mov']}" rendered="#{caixaBean.caixaAberto}">
				<h:panelGrid columns="1" style="border:none;">

				
				</h:panelGrid>
			</p:tab>
			
			<!-- Gerenciamento de Caixas -->
			<p:tab title="#{i18n['menu.gerenciamento']}" >
				<p:commandLink ajax="false" title="#{i18n['menu.gerenciamento']}" action="/visao/adminVisao/gerenciamentoCaixa/listaGerenciamentoCaixa.jsf" >
					<h:panelGrid columns="2" style="border:none; ">
						<p:graphicImage url="/resources/imagens/gerente_caixa.png" style="width:16px; height:16px; border:none" />
						<h:outputText value="#{i18n['menu.gerenciamento']}" />
					</h:panelGrid>
				</p:commandLink>
			</p:tab>
			
			<!-- Passagem de Parametros -->
			<p:tab title="#{i18n['menu.configuracao']}" >
				<p:commandLink ajax="false" title="#{i18n['menu.paramEstorno']}" action="#{parametrizacaoBean.showEditar}">
					<h:panelGrid columns="2" style="border:none">
						<p:graphicImage url="/resources/imagens/config.png" style="width:16px; height:16px; border:none"/>
						<h:outputText value="#{i18n['menu.paramEstorno']}" />
					</h:panelGrid>
				</p:commandLink>
			</p:tab>

			<!--  Relatórios -->
			<p:tab title="#{i18n['menu.relatorio']}" >
				
				<p:commandLink ajax="false" title="#{i18n['relatorio.movimentacao']}" action="/visao/caixaVisao/relatorios/listaRelatorio.jsf">
					<h:panelGrid columns="2" style="border:none">
						<p:graphicImage url="/resources/imagens/relatorio.png" style="width:16px;height:16px; border:none" />
						<h:outputText value="#{i18n['relatorio.movimentacao']}" />
					</h:panelGrid>
				</p:commandLink>
				
				<p:commandLink ajax="false" title="#{i18n['meiopag.titulo']}" action="#{resumoMeioPagamentoBean.acessarResumoMeioPag}">
					<h:panelGrid columns="2" style="border:none">
						<p:graphicImage url="/resources/imagens/config.png" style="width:16px; height:16px; border:none"/>
						<h:outputText value="#{i18n['meiopag.titulo']}" />
					</h:panelGrid>
				</p:commandLink>

				<p:commandLink ajax="false" title="i18n - Bordero" action="#{borderoPagamentoBean.acessarBorderoPagamento}" actionListener="#{borderoPagamentoBean.doPrepararListaFilial}">
					<h:panelGrid columns="2" style="border:none">
						<p:graphicImage url="/resources/imagens/config.png" style="width:16px; height:16px; border:none"/>
						<h:outputText value="#{i18n['relatorio.bordero']}" />
					</h:panelGrid>
				</p:commandLink>
				
			</p:tab>
		</p:accordionPanel>
	</h:form>
</ui:composition>

</html>